import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import {AlertController} from 'ionic-angular';//弹窗

@Component({
    selector: 'page-passCount',
    templateUrl: 'passCount.html'
})

export class PassCountPage {
    constructor(public navCtrl: NavController, public alertCtrl: AlertController) {
    }

    backPersonInfo() {
        this.navCtrl.pop();
    };

    delete() {

        let prompt = this.alertCtrl.create({
            title: '删除子账号',
            message: `您确定删除子账号{{info.name}},{{info.tel}}吗?`,
            buttons: [
                {
                    text: '取消',
                    handler: data => {
                        console.log('Cancel clicked');
                    }
                },
                {
                    text: '确定',
                    handler: data => {
                        console.log('Saved clicked');
                    }
                }
            ]
        });
        prompt.present();
    }

}


